import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HttpDemoComponent } from './http-demo/http-demo.component';
import { IndexDbDemoComponent } from './index-db-demo/index-db-demo.component';

const routes: Routes = [
  {
    path: "", redirectTo: "http", pathMatch: "full",
  },
  {
    path: "http", component: HttpDemoComponent,
    data: {
      breadcrumb: 'http请求'
    },
  },
  {
    path: "indexdb", component:IndexDbDemoComponent,
    data: {
      breadcrumb: 'IndexDb'
    },
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class HttpDemoRoutingModule { }
